const express = require('express');

// 创建商品路由 
let goodsRouter = express.Router();

// localhost/goods/list
goodsRouter.get('/list',(req,res)=>{
    res.send('商品列表页');
});

goodsRouter.get('/detail',(req,res)=>{
    res.send('商品详情页');
});


// 导出
module.exports = goodsRouter;